using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UploadVoiceRequest : GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UploadVoiceRequest, UploadVoiceRequest.Builder>
		{
			private bool resultIsReadOnly;
			private UploadVoiceRequest result;
			protected override UploadVoiceRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UploadVoiceRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UploadVoiceRequest DefaultInstanceForType
			{
				get
				{
					return UploadVoiceRequest.DefaultInstance;
				}
			}
			public string FromUserName
			{
				get
				{
					return this.result.FromUserName;
				}
				set
				{
					this.SetFromUserName(value);
				}
			}
			public string ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public uint Offset
			{
				get
				{
					return this.result.Offset;
				}
				set
				{
					this.SetOffset(value);
				}
			}
			public uint Length
			{
				get
				{
					return this.result.Length;
				}
				set
				{
					this.SetLength(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public uint MsgId
			{
				get
				{
					return this.result.MsgId;
				}
				set
				{
					this.SetMsgId(value);
				}
			}
			public uint VoiceLength
			{
				get
				{
					return this.result.VoiceLength;
				}
				set
				{
					this.SetVoiceLength(value);
				}
			}
			public SKBuiltinBuffer_t Data
			{
				get
				{
					return this.result.Data;
				}
				set
				{
					this.SetData(value);
				}
			}
			public uint EndFlag
			{
				get
				{
					return this.result.EndFlag;
				}
				set
				{
					this.SetEndFlag(value);
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint CancelFlag
			{
				get
				{
					return this.result.CancelFlag;
				}
				set
				{
					this.SetCancelFlag(value);
				}
			}
			public string MsgSource
			{
				get
				{
					return this.result.MsgSource;
				}
				set
				{
					this.SetMsgSource(value);
				}
			}
			public Builder()
			{
				this.result = UploadVoiceRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UploadVoiceRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UploadVoiceRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UploadVoiceRequest other = this.result;
					this.result = new UploadVoiceRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UploadVoiceRequest.Builder Clear()
			{
				this.result = UploadVoiceRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UploadVoiceRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UploadVoiceRequest.Builder(this.result);
				}
				return new UploadVoiceRequest.Builder().MergeFrom(this.result);
			}
			public override UploadVoiceRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UploadVoiceRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is UploadVoiceRequest)
				{
					return this.MergeFrom((UploadVoiceRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UploadVoiceRequest.Builder MergeFrom(UploadVoiceRequest other)
			{
				return this;
			}
			public override UploadVoiceRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UploadVoiceRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UploadVoiceRequest._uploadVoiceRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UploadVoiceRequest._uploadVoiceRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 42u)
					{
						if (num3 <= 18u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_);
								continue;
							}
							if (num3 == 18u)
							{
								this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
								continue;
							}
						}
						else
						{
							if (num3 == 24u)
							{
								this.result.hasOffset = input.ReadUInt32(ref this.result.offset_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasLength = input.ReadUInt32(ref this.result.length_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 66u)
						{
							if (num3 == 48u)
							{
								this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasVoiceLength = input.ReadUInt32(ref this.result.voiceLength_);
								continue;
							}
							if (num3 == 66u)
							{
								SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasData)
								{
									builder.MergeFrom(this.Data);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.Data = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 <= 82u)
							{
								if (num3 == 72u)
								{
									this.result.hasEndFlag = input.ReadUInt32(ref this.result.endFlag_);
									continue;
								}
								if (num3 == 82u)
								{
									BaseRequest.Builder builder2 = BaseRequest.CreateBuilder();
									if (this.result.hasBaseRequest)
									{
										builder2.MergeFrom(this.BaseRequest);
									}
									input.ReadMessage(builder2, extensionRegistry);
									this.BaseRequest = builder2.BuildPartial();
									continue;
								}
							}
							else
							{
								if (num3 == 88u)
								{
									this.result.hasCancelFlag = input.ReadUInt32(ref this.result.cancelFlag_);
									continue;
								}
								if (num3 == 98u)
								{
									this.result.hasMsgSource = input.ReadString(ref this.result.msgSource_);
									continue;
								}
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UploadVoiceRequest.Builder SetFromUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearFromUserName()
			{
				this.PrepareBuilder();
				this.result.hasFromUserName = false;
				this.result.fromUserName_ = "";
				return this;
			}
			public UploadVoiceRequest.Builder SetToUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = "";
				return this;
			}
			public UploadVoiceRequest.Builder SetOffset(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOffset = true;
				this.result.offset_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearOffset()
			{
				this.PrepareBuilder();
				this.result.hasOffset = false;
				this.result.offset_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetLength(uint value)
			{
				this.PrepareBuilder();
				this.result.hasLength = true;
				this.result.length_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearLength()
			{
				this.PrepareBuilder();
				this.result.hasLength = false;
				this.result.length_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public UploadVoiceRequest.Builder SetMsgId(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMsgId = true;
				this.result.msgId_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearMsgId()
			{
				this.PrepareBuilder();
				this.result.hasMsgId = false;
				this.result.msgId_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetVoiceLength(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVoiceLength = true;
				this.result.voiceLength_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearVoiceLength()
			{
				this.PrepareBuilder();
				this.result.hasVoiceLength = false;
				this.result.voiceLength_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasData = true;
				this.result.data_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder SetData(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasData = true;
				this.result.data_ = builderForValue.Build();
				return this;
			}
			public UploadVoiceRequest.Builder MergeData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasData && this.result.data_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.data_ = SKBuiltinBuffer_t.CreateBuilder(this.result.data_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.data_ = value;
				}
				this.result.hasData = true;
				return this;
			}
			public UploadVoiceRequest.Builder ClearData()
			{
				this.PrepareBuilder();
				this.result.hasData = false;
				this.result.data_ = null;
				return this;
			}
			public UploadVoiceRequest.Builder SetEndFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasEndFlag = true;
				this.result.endFlag_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearEndFlag()
			{
				this.PrepareBuilder();
				this.result.hasEndFlag = false;
				this.result.endFlag_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public UploadVoiceRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public UploadVoiceRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public UploadVoiceRequest.Builder SetCancelFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCancelFlag = true;
				this.result.cancelFlag_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearCancelFlag()
			{
				this.PrepareBuilder();
				this.result.hasCancelFlag = false;
				this.result.cancelFlag_ = 0u;
				return this;
			}
			public UploadVoiceRequest.Builder SetMsgSource(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMsgSource = true;
				this.result.msgSource_ = value;
				return this;
			}
			public UploadVoiceRequest.Builder ClearMsgSource()
			{
				this.PrepareBuilder();
				this.result.hasMsgSource = false;
				this.result.msgSource_ = "";
				return this;
			}
		}
		public const int FromUserNameFieldNumber = 1;
		public const int ToUserNameFieldNumber = 2;
		public const int OffsetFieldNumber = 3;
		public const int LengthFieldNumber = 4;
		public const int ClientMsgIdFieldNumber = 5;
		public const int MsgIdFieldNumber = 6;
		public const int VoiceLengthFieldNumber = 7;
		public const int DataFieldNumber = 8;
		public const int EndFlagFieldNumber = 9;
		public const int BaseRequestFieldNumber = 10;
		public const int CancelFlagFieldNumber = 11;
		public const int MsgSourceFieldNumber = 12;
		private static readonly UploadVoiceRequest defaultInstance;
		private static readonly string[] _uploadVoiceRequestFieldNames;
		private static readonly uint[] _uploadVoiceRequestFieldTags;
		private bool hasFromUserName;
		private string fromUserName_ = "";
		private bool hasToUserName;
		private string toUserName_ = "";
		private bool hasOffset;
		private uint offset_;
		private bool hasLength;
		private uint length_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasMsgId;
		private uint msgId_;
		private bool hasVoiceLength;
		private uint voiceLength_;
		private bool hasData;
		private SKBuiltinBuffer_t data_;
		private bool hasEndFlag;
		private uint endFlag_;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasCancelFlag;
		private uint cancelFlag_;
		private bool hasMsgSource;
		private string msgSource_ = "";
		private int memoizedSerializedSize = -1;
		public static UploadVoiceRequest DefaultInstance
		{
			get
			{
				return UploadVoiceRequest.defaultInstance;
			}
		}
		public override UploadVoiceRequest DefaultInstanceForType
		{
			get
			{
				return UploadVoiceRequest.DefaultInstance;
			}
		}
		protected override UploadVoiceRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string FromUserName
		{
			get
			{
				return this.fromUserName_;
			}
		}
		public string ToUserName
		{
			get
			{
				return this.toUserName_;
			}
		}
		public uint Offset
		{
			get
			{
				return this.offset_;
			}
		}
		public uint Length
		{
			get
			{
				return this.length_;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public uint MsgId
		{
			get
			{
				return this.msgId_;
			}
		}
		public uint VoiceLength
		{
			get
			{
				return this.voiceLength_;
			}
		}
		public SKBuiltinBuffer_t Data
		{
			get
			{
				return this.data_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public uint EndFlag
		{
			get
			{
				return this.endFlag_;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint CancelFlag
		{
			get
			{
				return this.cancelFlag_;
			}
		}
		public string MsgSource
		{
			get
			{
				return this.msgSource_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasOffset && this.hasLength && this.hasMsgId && this.hasVoiceLength && this.hasData && this.hasEndFlag && this.hasBaseRequest && this.Data.IsInitialized && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFromUserName)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.FromUserName);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ToUserName);
				}
				if (this.hasOffset)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Offset);
				}
				if (this.hasLength)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.Length);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.ClientMsgId);
				}
				if (this.hasMsgId)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.MsgId);
				}
				if (this.hasVoiceLength)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.VoiceLength);
				}
				if (this.hasData)
				{
					num += CodedOutputStream.ComputeMessageSize(8, this.Data);
				}
				if (this.hasEndFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(9, this.EndFlag);
				}
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(10, this.BaseRequest);
				}
				if (this.hasCancelFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(11, this.CancelFlag);
				}
				if (this.hasMsgSource)
				{
					num += CodedOutputStream.ComputeStringSize(12, this.MsgSource);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UploadVoiceRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] uploadVoiceRequestFieldNames = UploadVoiceRequest._uploadVoiceRequestFieldNames;
			if (this.hasFromUserName)
			{
				output.WriteString(1, uploadVoiceRequestFieldNames[5], this.FromUserName);
			}
			if (this.hasToUserName)
			{
				output.WriteString(2, uploadVoiceRequestFieldNames[10], this.ToUserName);
			}
			if (this.hasOffset)
			{
				output.WriteUInt32(3, uploadVoiceRequestFieldNames[9], this.Offset);
			}
			if (this.hasLength)
			{
				output.WriteUInt32(4, uploadVoiceRequestFieldNames[6], this.Length);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(5, uploadVoiceRequestFieldNames[2], this.ClientMsgId);
			}
			if (this.hasMsgId)
			{
				output.WriteUInt32(6, uploadVoiceRequestFieldNames[7], this.MsgId);
			}
			if (this.hasVoiceLength)
			{
				output.WriteUInt32(7, uploadVoiceRequestFieldNames[11], this.VoiceLength);
			}
			if (this.hasData)
			{
				output.WriteMessage(8, uploadVoiceRequestFieldNames[3], this.Data);
			}
			if (this.hasEndFlag)
			{
				output.WriteUInt32(9, uploadVoiceRequestFieldNames[4], this.EndFlag);
			}
			if (this.hasBaseRequest)
			{
				output.WriteMessage(10, uploadVoiceRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasCancelFlag)
			{
				output.WriteUInt32(11, uploadVoiceRequestFieldNames[1], this.CancelFlag);
			}
			if (this.hasMsgSource)
			{
				output.WriteString(12, uploadVoiceRequestFieldNames[8], this.MsgSource);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFromUserName)
			{
				num ^= this.fromUserName_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasOffset)
			{
				num ^= this.offset_.GetHashCode();
			}
			if (this.hasLength)
			{
				num ^= this.length_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasMsgId)
			{
				num ^= this.msgId_.GetHashCode();
			}
			if (this.hasVoiceLength)
			{
				num ^= this.voiceLength_.GetHashCode();
			}
			if (this.hasData)
			{
				num ^= this.data_.GetHashCode();
			}
			if (this.hasEndFlag)
			{
				num ^= this.endFlag_.GetHashCode();
			}
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasCancelFlag)
			{
				num ^= this.cancelFlag_.GetHashCode();
			}
			if (this.hasMsgSource)
			{
				num ^= this.msgSource_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			UploadVoiceRequest uploadVoiceRequest = object_0 as UploadVoiceRequest;
			return uploadVoiceRequest != null && (this.hasFromUserName == uploadVoiceRequest.hasFromUserName && (!this.hasFromUserName || this.fromUserName_.Equals(uploadVoiceRequest.fromUserName_))) && (this.hasToUserName == uploadVoiceRequest.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(uploadVoiceRequest.toUserName_))) && (this.hasOffset == uploadVoiceRequest.hasOffset && (!this.hasOffset || this.offset_.Equals(uploadVoiceRequest.offset_))) && (this.hasLength == uploadVoiceRequest.hasLength && (!this.hasLength || this.length_.Equals(uploadVoiceRequest.length_))) && (this.hasClientMsgId == uploadVoiceRequest.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(uploadVoiceRequest.clientMsgId_))) && (this.hasMsgId == uploadVoiceRequest.hasMsgId && (!this.hasMsgId || this.msgId_.Equals(uploadVoiceRequest.msgId_))) && (this.hasVoiceLength == uploadVoiceRequest.hasVoiceLength && (!this.hasVoiceLength || this.voiceLength_.Equals(uploadVoiceRequest.voiceLength_))) && (this.hasData == uploadVoiceRequest.hasData && (!this.hasData || this.data_.Equals(uploadVoiceRequest.data_))) && (this.hasEndFlag == uploadVoiceRequest.hasEndFlag && (!this.hasEndFlag || this.endFlag_.Equals(uploadVoiceRequest.endFlag_))) && (this.hasBaseRequest == uploadVoiceRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(uploadVoiceRequest.baseRequest_))) && (this.hasCancelFlag == uploadVoiceRequest.hasCancelFlag && (!this.hasCancelFlag || this.cancelFlag_.Equals(uploadVoiceRequest.cancelFlag_))) && (this.hasMsgSource == uploadVoiceRequest.hasMsgSource && (!this.hasMsgSource || this.msgSource_.Equals(uploadVoiceRequest.msgSource_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("FromUserName", this.hasFromUserName, this.fromUserName_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("Offset", this.hasOffset, this.offset_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("Length", this.hasLength, this.length_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("MsgId", this.hasMsgId, this.msgId_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("VoiceLength", this.hasVoiceLength, this.voiceLength_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("Data", this.hasData, this.data_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("EndFlag", this.hasEndFlag, this.endFlag_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("CancelFlag", this.hasCancelFlag, this.cancelFlag_, writer);
			GeneratedMessageLite<UploadVoiceRequest, UploadVoiceRequest.Builder>.PrintField("MsgSource", this.hasMsgSource, this.msgSource_, writer);
		}
		public static UploadVoiceRequest ParseFrom(byte[] data)
		{
			return UploadVoiceRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UploadVoiceRequest MakeReadOnly()
		{
			return this;
		}
		public static UploadVoiceRequest.Builder CreateBuilder()
		{
			return new UploadVoiceRequest.Builder();
		}
		public override UploadVoiceRequest.Builder ToBuilder()
		{
			return UploadVoiceRequest.CreateBuilder(this);
		}
		public override UploadVoiceRequest.Builder CreateBuilderForType()
		{
			return new UploadVoiceRequest.Builder();
		}
		public static UploadVoiceRequest.Builder CreateBuilder(UploadVoiceRequest prototype)
		{
			return new UploadVoiceRequest.Builder(prototype);
		}
		static UploadVoiceRequest()
		{
			UploadVoiceRequest.defaultInstance = new UploadVoiceRequest().MakeReadOnly();
			UploadVoiceRequest._uploadVoiceRequestFieldNames = new string[]
			{
				"BaseRequest",
				"CancelFlag",
				"ClientMsgId",
				"Data",
				"EndFlag",
				"FromUserName",
				"Length",
				"MsgId",
				"MsgSource",
				"Offset",
				"ToUserName",
				"VoiceLength"
			};
			UploadVoiceRequest._uploadVoiceRequestFieldTags = new uint[]
			{
				82u,
				88u,
				42u,
				66u,
				72u,
				10u,
				32u,
				48u,
				98u,
				24u,
				18u,
				56u
			};
			object.ReferenceEquals(micromsg.Proto.UploadVoiceRequest.Descriptor, null);
		}
	}
}
